<?php


class Chequeo_model extends CI_Model 
{
//////////////////////////////////////////////////////////////////////////////////////////////////////////
    function __construct()
    {        
        parent::__construct();
		
		$this->load->database();
    }
	
	function crearchequeoCamillero($d,$array_post1)
	{
	$array_post1['id_tercero']  = $d['id_tercero']; 	
	$array_post1['fecha']  = date('Y-m-d H:i:s'); 
	$this -> db -> insert('chequeo_camillero',$array_post1);
	}
	

		function crearchequeoEnfermeria($d,$array_post1)
	{
	$array_post1['id_tercero']  = $d['id_tercero']; 	
	$array_post1['fecha']  = date('Y-m-d H:i:s'); 
	$this -> db -> insert('chequeo_enfermeria',$array_post1);
	}
	
	function crearchequeoCamillero_ter($d,$array_post1)
	{
	$array_post1['fecha']  = date('Y-m-d H:i:s'); 
	$this -> db -> insert('chequeo_camillero',$array_post1);
	}
	

		function crearchequeoEnfermeria_ter($d,$array_post1)
	{
	$array_post1['fecha']  = date('Y-m-d H:i:s'); 
	$this -> db -> insert('chequeo_enfermeria',$array_post1);
	}
	
	
	function lista_chequeo_enf()
	{
	
		$this -> db -> from('core_chequeo_enfermeria');
		$result = $this -> db -> get();
		return $result -> result_array();
	}
	
		function lista_chequeo_cam()
	{
	
		$this -> db -> from('core_chequeo_camillero');
		$result = $this -> db -> get();
		return $result -> result_array();
	}
	
	
	
}